%option noyywrap
%{
#include<stdio.h>
#include<iostream>
#include<string>
#include<map>
#include<set>
using namespace std;
set<string> table;
long int studentnumber=201492340;
char *name="wzh";
long long int number=0;int sum1=0;
int sum2=0;
%}
digit [0-9]
number {digit}{9}
sum {digit}+(\.{digit}+)?
name NAME$

%%
^{number}    {printf("%d",studentnumber);}
{name}  {printf("%s",name);}
{sum} {sum1++;table.insert(yytext); number=(long long int)(atof(yytext)*2+0.5)+studentnumber; cout<<number;}

%%

int main()
{
yylex();
sum2=table.size();
printf("出现次数%d,去除重复情况的出现次数%d",sum1,sum2);
return 0;
}
